import {request} from "./request";

//用户注册
export function register(userInfo) {
    return request({
        url:'/user/register',
        method:'post',
        data:userInfo,
    })
}
//用户登录
export function login(loginInfo) {
    return request({
        url:"/user/login",
        method:"post",
        data:loginInfo,
    })
}
//用户信息修改
export function editUser(data) {
    return request({
        url:'/user/editUser',
        method:'post',
        data:data
    })

}

//获取用户信息
export function getUserD(id) {
    return request({
        url:`user/userInfo`,
        method:"post",
        data:{
            Id:id
        }
    })
}

//用户退出
export function logout() {
    return request({
        url:'/user/logout',
        method:'post'
    })
}